<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/1
  Time: 15:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script type="text/javascript" src="/js/jquery-3.4.1.js"></script>
    <script type="text/javascript">
        function check(){
            var name = $("#uname").val();
            var pwd = $("#upwd").val();
            if(name.length < 3){
                alert("用户名长度应大于2");
                return false;
            }
            if(pwd.length < 6){
                alert("密码长度应大于5");
                return false;
            }
            return true;
        }
    </script>
    <title>AddUser</title>
</head>
<body>
    <form action="AddUserServlet" method="post" onsubmit="return check()">
      用户名：<input type="text" name="uname" id="uname"/><br/>
      密码：<input type="password" name="upwd" id="upwd" /><br/>
      <input type="submit" value="注册">
    </form>
    <br/>
    <a href="deleteUser.jsp">删除用户信息</a><br/>
    <a href="updateUser.jsp">更新用户密码</a><br/>
    <a href="QueryAllUsersServlet">展示用户信息</a><br/>
</body>
</html>
